package cn.edu.zafu.bigdata.x.xiejunjie;

public class StudentGradeManagerTest {

    public static void main(String[] args) {
        StudentGradeManager manager = new StudentGradeManager();

        // 添加学生成绩
        manager.addStudent("张三", 88);
        manager.addStudent("李四", 95);
        manager.addStudent("王五", 78);

        // 查询学生成绩
        System.out.println("张三的成绩: " + manager.getGrade("张三"));
        System.out.println("李四的成绩: " + manager.getGrade("李四"));
        System.out.println("王五的成绩: " + manager.getGrade("王五"));

        // 尝试查询一个不存在的学生
        System.out.println("赵六的成绩: " + manager.getGrade("赵六"));

        // 删除一个学生
        manager.removeStudent("张三");

        // 再次查询已被删除的学生
        System.out.println("张三的成绩: " + manager.getGrade("张三"));
    }
}
